package com.cande.loki.jmh.sbe;

//import baseline.CarDecoder;
//import baseline.CarEncoder;
//import org.agrona.ExpandableDirectByteBuffer;
//import org.agrona.MutableDirectBuffer;
//import org.agrona.concurrent.UnsafeBuffer;
//
//import java.nio.ByteBuffer;

public class TestSbe {
    public static void main(String[] args) {

//        ByteBuffer encodedMsgBuffer = ByteBuffer.allocate(1024);
//        MutableDirectBuffer sendBuffer = new UnsafeBuffer(encodedMsgBuffer);
//        sendBuffer.
//        CarEncoder a = new CarEncoder().wrap(sendBuffer,0);
//        a.modelYear(10);
//        a.model("dsadadasdqwesad");
//
//        MutableDirectBuffer buffer = a.buffer();
//
//        byte[] bytes =  buffer.byteArray();
//
//        int i = a.sbeBlockLength();
//        int i1 = a.sbeSchemaVersion();
//
//
//        System.out.println(i);
//        System.out.println(i1);
//
//        CarDecoder userDecoder = new CarDecoder();
//        userDecoder.wrap(buffer,0,i,i1);
//
//        System.out.println("年龄："+userDecoder.modelYear());



    }
}
